<?php defined("IN_SYSTEM") or die("Access Denied");/* 防止模板被盗 */?><!DOCTYPE html>
<html lang="en">
	<head>
		{include file="block/head" /}
	</head>
	<body class="lay-blog">
		{include file="block/header" /}
		<div class="container-wrap">
			<div class="container">
				<div class="contar-wrap">
					<h4 class="item-title">
						<p><i class="layui-icon layui-icon-speaker"></i>公告：<span>{:config('module_blog.notice')}</span></p>
					</h4>
					{volist name="data['articles']" id="vo"}
					<div class="item">
						<div class="item-box  layer-photos-demo1 layer-photos-demo">
							<h3><a href="{:ROOT_DIR.$vo['category']['url']}/{$vo['id']}.html" title="{$vo['title']}">{$vo['title']}</a></h3>
							<h5>发布于：<span>{$vo['publish_time']}</span></h5>
							<p>{$vo['summary']}</p>
							{if condition="$vo['image']"}<img src="{$vo['image']}" alt="{$vo['title']}">{/if}
						</div>
						<div class="comment count">
							<a href="{:ROOT_DIR.$vo['category']['url']}/{$vo['id']}.html#comment">评论</a>
							<a href="javascript:;" class="like" data-url="{:url('ajax/articleLike', ['id' => $vo['id']])}">点赞</a>
						</div>
					</div>
					{/volist}
				</div>
				{if condition="$data['pages'] > 1"}
					<div class="item-btn" style="margin-bottom:15px;">
						{if condition="($data['page'] - 1) > 0"}
							<a href="?page={$data['page']-1}" class="layui-btn layui-btn-normal">上一页</a>
						{else /}
							<a href="javascript:;" class="layui-btn layui-btn-disabled">上一页</a>
						{/if}
						<span class="page-num">{$data['page']}/{$data['pages']}</span>
						{if condition="($data['page'] + 1) <= $data['pages']"}
							<a href="?page={$data['page']+1}" class="layui-btn layui-btn-normal">下一页</a>
						{else /}
							<a href="javascript:;" class="layui-btn layui-btn-disabled">下一页</a>
						{/if}
					</div>
				{/if}
				<div class="contar-wrap">
					<ul class="links">
						{volist name=":blog_links()" id="vo"}
						<li><a href="{$vo['url']}" target="{$vo['target']}" title="{$vo['title']}">{$vo['title']}</a></li>
						{/volist}
					</ul>
				</div>
			</div>
		</div>
		{include file="block/footer" /}
	</body>
</html>